home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 October / EnigmA AMIGA RUN 22 (1997)(G.R. Edizioni)(IT)[!][issue 1997-10 & 11][EAR-CD VI].iso / recent2 / cccc.lha / dmakefile < prev    next >
Makefile  |  1997-08-31  |  1KB  |  68 lines

  1. #
  2. # The name of the tool.
  3. #
  4. TOOL = cccc
  5.  
  6. #
  7. # The source files that you need to build the tool.
  8. #
  9. MYSRCS = cccc.c
  10.  
  11. MYHDRS = myheader.h
  12.  
  13. #
  14. # You might want to tinker with the compiler flags and libraries.
  15. #
  16. # -3.0    - Compile for a 3.0 system (optional)
  17. # -mc    - Small code model
  18. # -md    - Small data model
  19. #
  20. CFLAGS = -3.0 -mc -md
  21.  
  22. #
  23. # Required libraries
  24. #
  25. # amiga30s.lib    - The small code version of the Amiga library
  26. # cs.lib    - The small code version of the C library
  27. # ms.lib    - The small code version of the maths library
  28. #
  29. LIBS =    amiga30s.lib cs.lib ms.lib
  30.  
  31. #
  32. # You shouldn't have to touch anything below here.
  33. #
  34. # (FYI: (It's important that toolstart.c gets listed first... toolstart.o
  35. #  has to be the first thing mentioned when the tool is linked
  36. #  together.)
  37. #
  38. PTOOL = $(TOOL).ptool
  39. README = $(TOOL).readme
  40. ARCHIVE = $(TOOL).lha
  41.  
  42. SRCS = toolstart.c $(MYSRCS)
  43. OBJS = $(SRCS:*.c:*.o)
  44.  
  45. all: $(PTOOL)
  46.  
  47. $(PTOOL):    $(OBJS)
  48.     dlink $(OBJS) $(LIBS) -o $(PTOOL)
  49.  
  50. $(OBJS):    $(SRCS)
  51.     dcc $(CFLAGS) -c %(right) -o %(left)
  52.  
  53. # I use emacs, so I tend to have a lot of backup files ending in ``!''
  54. # lying around. 
  55. clean:
  56.     delete $(OBJS) *!
  57.  
  58. clobber:    clean
  59.     delete $(PTOOL) $(ARCHIVE)
  60.  
  61. distribution:    $(ARCHIVE)
  62.  
  63. $(ARCHIVE):    clobber $(PTOOL) clean
  64.     lha a $(ARCHIVE) dmakefile $(PTOOL) $(MYHDRS) $(MYSRCS) $(README)
  65.  
  66.  
  67.  
  68.